\f0\fs28 Q: Why doesn't Librarian index some files?\
\
A: The best way to find out what is wrong with a file is to do what the indexing machinery does by hand. \
\
Before indexing a file, Librarian determines its filetype. Files of certain types, binary for example, are not indexed. Check the filetype to make sure it is reasonable using
\i fileType
\f3\i0\fs24 :\
\
% /usr/lib/indexing/fileType <filename>\
\f0\fs28 \
The filetype should be something like
\i ascii
\i0 ,
\i english
\i0 ,
\i rtf
\i0 ,
\i wn
\i0 , or
\i frame
\i0 . If it's not reasonable, then you probably should edit the file to remove any non-ascii characters.\
\
If the filetype is reasonable, you can run the keyword extraction program on that file by hand to see where it breaks. The keyword extraction program for each filetype is found as
\i /usr/lib/indexing/<type>-keys
\i0 . For an
\i rtf
\i0 file, you would do this:\
\
\f3\fs24 % /usr/lib/indexing/rtf-keys <filename>\
\f0\fs28 \
If there is no keyword filter for a filetype, use the default filter program found in
\i /usr/bin/pword
\i0 .\
\
If you want more information about the internals of the indexing machinery, please read